<script type="text/javascript">
        window.addEvent('domready',function(){
            formValidator = new Form.Validator.Inline($('login_action'),{
                stopOnFailure: true,
                useTitles: true,
                errorPrefix: "",

                onFormValidate: function(passed, form, event){
                    if(passed){
                        form.submit();
                    }
                }
            });
        });
</script>
<?php
    $attr = array('id' => 'login_action');
?>
<?=form_open('pages/process_login',$attr)?>
<?php
    $inputarr = array();
    if($this->session->userdata('formvalue')){
        $inputarr = $this->session->userdata('formvalue');
    }
?>
<div id="identifikasiColumn">
	    <table style="table-layout: auto;">
                  <tr>
                      <th width="100"></th>
                      <th width="5"></th>
                      <th width="130"></th>
                  </tr>
                  <tr>
                      <td colspan="3">
                          <h3> Login </h3>
                      </td>
                  </tr>
                  <tr>
                      <td>
                          <label>Nama Pengguna</label>
                      </td>
                      <td>
                          :
                      </td>
                      <td>
                          <input name="username" type="text" title="<?=getshortmessagecode(5)?>" class="textfield required maxLength:25" size="35" value="<?php display($inputarr,'username'); ?>" />
                      </td>
                  </tr>
                  <tr>
                      <td>
                          <label>Kata Kunci</label>
                      </td>
                      <td>
                          :
                      </td>
                      <td>
                          <input name="password" type="password" title="<?=getshortmessagecode(6)?>" class="textfield required" size="35" value=""/>
                      </td>
                  </tr>
                  <tr>
                      <td>
                          <label>Kode Verifikasi</label>
                      </td>
                      <td>
                          :
                      </td>
                      <td>
                            <?php echo recaptcha_get_html('6LfVjM0SAAAAAGAIXy5w11KGna2DKH2kzADkxg6w', null); ?>
                       </td>
                    <tr>
                        <td colspan="2">

                        </td>
                        <td>
                            <input type="submit" value="Login" name="login" class="button"/><a href="<?=base_url();?>pages/forget_password"> Lupa kata kunci anda? </a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <?php
							
							if($this->session->flashdata('formvalue')){
									$flasharr = $this->session->flashdata('formvalue');
									show_message($flasharr);
								}
                            ?>
                        </td>
                    </tr>
        </table>
      </div>
<?=form_close();?>
   
